package com.superjson.showpro.service;

import com.superjson.showpro.base.GenericService;
import com.superjson.showpro.entity.Evaluate;
import com.superjson.showpro.shared.enums.EvaluateResultEnum;
import com.superjson.showpro.shared.result.Result;

import javax.servlet.http.HttpServletRequest;

public interface EvaluateService extends GenericService<Evaluate> {

    Result<Evaluate> getByTokenIp(Long articleId, String ip);

    Result saveEvaluate(HttpServletRequest evaluate, Long articleId, EvaluateResultEnum dbEvaluate);
}